﻿using Newtonsoft.Json;

namespace ScreenWarnning
{
    public class HttpResult
    {
        [JsonProperty("msg")]
        public string? Message { get; set; }

        public bool RequestCompleted { get; set; }

        public bool IsSuccess { get; set; }

        public int HttpCode { get; set; }
    }

    public class HttpResult<T> : HttpResult
    {
        [JsonProperty("data")]
        public T? Data { get; set; }
    }
}